package com.tdcode.ch1;

/**
 * @className: NewReleasePrice
 * @description:
 * @author: cyd
 * @date: 2021/11/30 下午10:13
 **/
public class NewReleasePrice extends Price {

    @Override
    int getPriceCode() {
        return Movie.NEW_RELEASE;
    }

    @Override
    double getCharge(int daysRented) {
        return daysRented * 3;
    }

    @Override
    int getFrequentRenterPoints(int daysRented) {
        return daysRented > 1 ? 2 : 1;
    }
}
